package baitap_demo;

import java.util.Scanner;

public class Nhanvien {
	Scanner sc = new Scanner(System.in);
	public String ten;
	public String maso;
	public float bacluong;
	public String loai_nv;
	public String nv_baove;
	public String nv_ketoan;
	public String nv_sell;
	public float luong_cb;

	public double tinhluong() {
		double luong = luong_cb * bacluong;
		return luong;
	}

	public void nhapten() {
		System.out.println("Nhap ten nhan vien: ");
		ten = sc.nextLine();
	}

	public void nhapmaso() {
		System.out.println("Nhap ma so: ");
		maso = sc.nextLine();
	}

	public void nhapbacluong() {
		System.out.println("Nhap bac luong nhan vien: ");
		bacluong = sc.nextInt();
	}
	public void nhaploainv() {
		System.out.println("Nhap Loai nhan vien: ");
		int nhap = sc.nextInt();
		if(nhap==1){
			loai_nv= nv_baove;
		}
		if(nhap==2){
			loai_nv= nv_ketoan;
		}
		if(nhap==3){
			loai_nv= nv_sell;
		}
	}

	public void nhapluongcb() {
		System.out.println("Nhap luong Co ban nhan vien: ");
		luong_cb = sc.nextLong();
	}

	public void showNv(){
		System.out.println("Ten: "+ten);
		System.out.println("Ma So: "+maso);
		System.out.println("Bac Luong: "+bacluong);
		System.out.println("Loai Nhan Vien: "+loai_nv);
		System.out.println("Luong cb: "+luong_cb);
		System.out.println("Luong: "+tinhluong());
	}

}
